<%@ Page Language="C#" MasterPageFile="~/forums/masterpages/admin.master" AutoEventWireup="true" CodeFile="ycodes.aspx.cs" Inherits="forums_admin_ycodes" Title="Untitled Page" %>

<%@ Register Src="../controls/administration/ModifyYCode.ascx" TagName="ModifyYCode"
    TagPrefix="uc3" %>

<%@ Register Src="../controls/administration/YCodeGrid.ascx" TagName="YCodeGrid"
    TagPrefix="uc1" %>
<%@ Register Src="../controls/administration/AddYCode.ascx" TagName="AddYCode" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:MultiView ID="mviewYCodes" runat="server" ActiveViewIndex="0">
        <asp:View ID="viewGrid" runat="server">
            <asp:LinkButton ID="lnkAdd" runat="server" OnClick="lnkAdd_Click">Add YCode</asp:LinkButton>
            <uc1:YCodeGrid id="YCodeGrid1" runat="server" OnItemSelected="YCodeSelected">
            </uc1:YCodeGrid>
        </asp:View>
        <asp:View ID="viewAdd" runat="server">
            <asp:LinkButton ID="lnkBack" runat="server" OnClick="lnkBack_Click">Back</asp:LinkButton>
            
            <h2>Add YCode</h2>
            <uc2:AddYCode id="AddYCode1" runat="server" OnYCodeCreated="YCodeCreated">
            </uc2:AddYCode>
        </asp:View>
        <asp:View ID="viewModify" runat="server">
            <asp:LinkButton ID="LinkButton1" runat="server" OnClick="lnkBack_Click">Back</asp:LinkButton><br />
            <uc3:ModifyYCode ID="ModifyYCode1" runat="server" OnYCodeModified="YCodeModified" />
        </asp:View>
    </asp:MultiView>

</asp:Content>

